package com.qqt.csr.route.vo.resp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "WorkOvertimeRespVO", description = "非常规工作时间")
public class WorkOvertimeRespVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 8527486150621447778L;

    @Schema(description = "开始时间",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "开始时间")
    @NotNull(message = "非常规工作时间开始时间不能为空")
    private Date startTime;

    @Schema(description = "结束时间",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "结束时间")
    @NotNull(message = "非常规工作时间结束时间不能为空")
    private Date endTime;
}
